package org.jackysoft.google.collection;

import org.jackysoft.entity.User;

public class UserZtreeFunction extends AbstractZTreeFunction<User, ZTreeNode> {

	@Override
	public ZTreeNode apply(User from) {
		ZTreeNode zn = new ZTreeNode();
		zn.setId(from.getUsername());
		zn.setName(from.getLocalName());
		zn.setSort(from.getSort());
		zn.setIsParent("false");		
		zn.setChecked(false);
		zn.setNocheck(false);
	    zn.setZtype("user");
		return zn;
	}

}
